optical matlab polarization radiation condition scientific software optics mathematics maxwell equations engineering software polarisation